package solver;

/**
 * Simple gradient decent 
 * @author tigerzhong
 *
 */
public class GradientDecent extends Searcher {
    /**
     * Learning rate
     */
    double eps = 0.01;
    /*Getter and Setter*/  
    public double getEps() {
        return eps;
    }
    public void setEps(double eps) {
        this.eps = eps;
    }

    @Override
    public double update(double parameters, double dev) {
	return parameters - eps*dev;
    }

}
